﻿@using JT.WEB.Models.Were
@model JT.WEB.Models.Were.TbChuRuInfo

@{
ViewData["Title"] = "出入信息-修改";
}

<div class="row">
    <div class="col-md-4">
        <form asp-action="Edit">
            <div asp-validation-summary="All" class="text-danger"></div>
            @*<div class="form-group">
                <label asp-for="NamePerson" class="control-label"></label>
                <select asp-for="NamePerson" class="form-control" asp-items="ViewBag.NamePerson">

                </select>
            </div>*@
            <div class="form-group">
                <label asp-for="ItemNameNavigation.ItemName" class="control-label"></label>
                <input readonly asp-for="ItemNameNavigation.ItemName" class="form-control"/>
                <input asp-for="ItemNameId" hidden="hidden"/>
                <input asp-for="Recorder" hidden="hidden"/>
            </div>
            <div class="form-group">
                <label asp-for="Count" class="control-label"></label>
                <input asp-for="Count" class="form-control" />
                <span asp-validation-for="Count" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="ChangeDate" class="control-label"></label>
                <input asp-for="ChangeDate" class="form-control " />

                <style>
                    input[type=datetime-local]::-webkit-inner-spin-button {
                        visibility: hidden;
                    }

                    /*去掉时间输入框 其它小按钮*/

                </style>
                <span asp-validation-for="ChangeDate" class="text-danger"></span>

            </div>
            <div class="form-group">
                <div class="radio">
                    <label>
                        <input asp-for="IsRuKu" type="radio" checked="checked" value="@IsRuKu.inStock" /> 入库
                    </label>
                    <label>
                        <input asp-for="IsRuKu" type="radio" value="@IsRuKu.outStock" /> 出库
                    </label>
                </div>
            </div>
            <div class="form-group">
                <input asp-for="ChuRuId" type="hidden" />
                <input type="submit" value="保存" class="btn btn-outline-success" />
            </div>
        </form>
    </div>
</div>

<div>
    <a asp-action="Index">返回列表</a>
</div>

@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
